package com.yunxi.dao.otd;

import com.yunxi.bizToHub.pojo.OtdModelVO;
import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.otd.OtdIfProducePlan;
import com.yunxi.otd.pojo.OtdIfProducePlanVO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 生产计划 Mapper 接口
 * </p>
 *
 * @author
 * @since 2019-05-24
 */
public interface OtdIfProducePlanMapper extends BaseMapperPlus<OtdIfProducePlan> {

    List<Map<String, Object>> selectDailyByCode(@Param("year") String year, @Param("month") String month,
        @Param("modelCode") String modelCode,
        @Param("days") List<Integer> dayList);

    List selectChangePlan(Map<String, Object> map);

    OtdIfProducePlanVO selectVOByCode(String planNo);

    OtdIfProducePlan selectByCode(String planNo);

    List<OtdIfProducePlanVO> selectIfListByWeek(@Param("year") String year, @Param("month") String month,
        @Param("week") String week);

    void updateIfPlanBySapBack(@Param("planNo") String planNo, @Param("sapNo") String sapNo,
        @Param("sapState") String sapState,
        @Param("errorInfo") String errorInfo);
}
